package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Daily;
import cn.wolfcode.trip.base.domain.Favorites;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FavoritesMapper {
    int deleteByPrimaryKey(@Param("userId") Integer userId, @Param("dailyId") Integer dailyId);

    int insert(Favorites record);

    List<Daily> selectByPrimaryKey(Integer id);

    List<Favorites> selectAll();

    int updateByPrimaryKey(Favorites record);

    Favorites getFavoritesById(@Param("userId") Integer userId, @Param("dailyId") Integer dailyId);

    List<Favorites> getStrategyFavoritesByUserId(Long userId);

    Long getStrategyFavoritesCounts(Long userId);

    List<Favorites> getTravelFavoritesByUserId(Long userId);

    Long getTravelFavoritesCounts(Long userId);

    List<Favorites> getDailyFavoritesByUserId(Long userId);

    Long getDailyFavoritesCounts(Long userId);
}